package com.iqiyi.pps.epg.core.model.encode;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "encode_server_stat")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class EncodeServer {


  private  long id;
    private String serverIp;
    private String signalDesc;
    private  String  inputSignal;
    private String outputSignal;
    private Timestamp createTime;
    private Timestamp modifyTime;
    private int status = 0;
    private String extraData = "";
    private int encodeType = 0;
    private int isDolby = 0;
    private String audio;


    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "server_ip")
    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    @Column(name = "signal_desc")
    public String getSignalDesc() {
        return signalDesc;
    }

    public void setSignalDesc(String signalDesc) {
        this.signalDesc = signalDesc;
    }

    @Column(name = "input_signal")
    public String getInputSignal() {
        return inputSignal;
    }


    public void setInputSignal(String inputSignal) {
        this.inputSignal = inputSignal;
    }

    @Column(name = "output_signal")
    public String getOutputSignal() {
        return outputSignal;
    }

    public void setOutputSignal(String outputSignal) {
        this.outputSignal = outputSignal;
    }

    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Column(name = "modify_time")
    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Timestamp modifyTime) {
        this.modifyTime = modifyTime;
    }


    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Column(name = "extra_data")
    public String getExtraData() {
        return extraData;
    }

    public void setExtraData(String extraData) {
        this.extraData = extraData;
    }

    @Column(name = "encode_type")
    public int getEncodeType() {
        return encodeType;
    }

    public void setEncodeType(int encodeType) {
        this.encodeType = encodeType;
    }

    @Column(name = "is_dolby")
    public int getIsDolby() {
        return isDolby;
    }

    public void setIsDolby(int isDolby) {
        this.isDolby = isDolby;
    }

    @Column(name = "audio")
    public String getAudio() {
        return audio;
    }

    public void setAudio(String audio) {
        this.audio = audio;
    }
}
